added samples
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2008 / VBWebBrowserSuppressError / HTMLPages / Error.htm
blob0a4d52f63743a62633bc6847da11f9c3b8603b8e
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html>
3 <head>
4 <title></title>
5 <script type="text/javascript">
7 // Throw a script error.
8 function CreateScriptError() {
9 throw ("Here is an error! ");
12 // This will cause security dialog.
13 function LaunchSecurityDialog() {
14 var fso = new ActiveXObject("Scripting.FileSystemObject");
15 var reading = 1;
16 var f = fso.OpenTextFile("Error.htm", reading);
17 try {
18 strs = f.ReadAll();
19 } catch (err) {
20 strs = null;
22 f.close();
25 // Call JIT Debugger.
26 function LaunchDebugger() {
27 debugger;
30 </script>
31 </head>
32 <body>
33 <div>
34 <input type="button" value="Script Error" onclick="CreateScriptError();" />
35 <br />
36 Click this button to test "Suppress Html Element Errors".
37 <br />
38 <br />
39 </div>
40 <div>
41 <input type="button" value="Security dialog" onclick="LaunchSecurityDialog();" />
42 <br />
43 Click this button to test "Suppress all dialog".
44 <br />
45 To launch security dialog, you may need to use the default level of IE security.<br />
46 You can also visit a web site that need windows authentication to test "Suppress
47 all dialogs".
48 <br />
49 <br />
50 </div>
51 <div>
52 <input type="button" value="Launch Debugger" onclick="LaunchDebugger();" />
53 <br />
54 Click this button to test "Suppress JIT debugger".
55 <br />
56 <br />
57 </div>
58 </body>
59 </html>